<template>
  <div class="panel">
      测试页面，接口调用，项目配置，需要插件
  </div>
</template>

<script>
  //引用接口
  import templateApi from '@/api/template'
  export default {
    components: {

    },
    data() {
      return {
       }
    },
    watch: {

    },
    created() {
      document.title = '测试页面'
      var u = navigator.userAgent;
      var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
      var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
      this.getInform()
    },
    methods: {
      //举报信息
      getInform() {
        templateApi.getInform().then(res => {
          if (res.data.state == 0) {
            this.inform = res.data.data.comment
            console.log(this.inform)
          }
        })
      },
    }
  }
</script>

<style lang="scss" scoped>
  //引用局部样式
</style>
